﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OOAD_Project_Engine.Application.Services;
using OOAD_Project_Engine.Domain.Components;
using Microsoft.Xna.Framework;

namespace OOAD_Project_Editor.Domain.ManageSceneActions
{
    [Action(ActionType = EActionType.Move)]
    class MoveAction : ManageSceneAction
    {
        Transform tranform;
        Vector2 from, to;

        public MoveAction(ISceneService scene,Transform tranform,Vector2 from,Vector2 to)
            : base(scene)
        {
            this.tranform = tranform;
            this.from = from;
            this.to = to;
        }

        public override void DoAction()
        {
            tranform.Position = to;
        }
    }
}
